// dart 中的枚举


enum Weekday { SUN, MON, TUE, WED, THU, FRI, SAT }

// 入口主函数
void main() {
  var today = Weekday.WED;

  switch (today) {
    case Weekday.SUN: 
      print("今天是周日");
      break;
    case Weekday.MON: 
      print("今天是周一");
      break;
    case Weekday.TUE: 
      print("今天是周二");
      break;
    case Weekday.WED: 
      print("今天是周三");
      break;
    case Weekday.THU: 
      print("今天是周四");
      break;
    case Weekday.FRI: 
      print("今天是周五");
      break;
    case Weekday.SAT: 
      print("今天是周六");
      break;
    default:
      print("参数有误");
  }
}
